shared variable造句
例句与造句
- Maintain a shared variable across all test iterations in a load test
在负载测试中的所有测试迭代间维护一个共享变量。 - Locks around shared variables allow java threads to quickly and easily communicate and synchronize
给共享变量上锁就使得java线程能够快速方便地通信和同步。 - Some very strange things can happen if you fail to synchronize when accessing shared variables
如果在访问共享变量的时候没有同步的话,就会发生一些奇怪的事情。 - You will be able to share variables among the scripted action script and the prefix and suffix scripts
可以在scripted action脚本与前缀脚本和后缀脚本间共享变量。 - In the preceding example , the compiler generates a warning message both times the code accesses the shared variable
在前面的示例中,编译器在代码通过实例访问共享变量 - It's difficult to find shared variable in a sentence. 用shared variable造句挺难的
- Volatile variables can also be used to store shared variables at a lower cost than that of synchronization , but they have limitations
还可以使用可变变量来以比同步更低的成本存储共享变量,但它们有局限性。 - A shared variable or event is stored in memory only once , no matter how many or few instances you create of its class or structure
共享变量或事件只能在内存中存储一次,而无论您创建多少个它的类或结构的实例。 - Unfortunately , this situation is a common use case for volatile - using a volatile field as a " guard " to indicate that a set of shared variables had been initialized
不幸地,这是volatile常见用例用一个volatile字段作为“守护”表明已经初始化了一组共享变量。 - In particular , nearly every modern processor has instructions for updating shared variables in a way that can either detect or prevent concurrent access from other processors
特别是,几乎每个现代处理器都有通过可以检测或阻止其他处理器的并发访问的方式来更新共享变量的指令。 - Developers may find use for atomic variables directly as a higher - performance replacement for shared counters , sequence number generators , and other independent shared variables that otherwise would have to be protected by synchronization
开发人员可以直接将原子变量用作共享计数器、序号生成器和其他独立共享变量的高性能替代,否则必须通过同步保护这些变量。 - The combination of mutual exclusion and memory barriers means that as long as programs follow the correct synchronization rules that is , synchronize whenever writing a variable that may next be read by another thread or when reading a variable that may have been last written by another thread , each thread will see the correct value of any shared variables it uses
互斥独占和内存壁垒结合使用意味着只要您在程序设计的时候遵循正确的同步法则(也就是说,每当写一个后面可能被其他线程访问的变量,或者读取一个可能最后被另一个线程修改的变量时,都要使用同步) ,每个线程都会得到它所使用的共享变量的正确的值。 - In this paper , we propose a strategy for selecting synchronization sequences from java multi - thread program based on the analyzing of reading and writing on shared variable , and implemented a deterministic testing framework of java multi - thread program by using the dynamic proxy class . a reachability testing system of java multi - thread program is constructed by the strategy and the deterministic testing framework
本文提出了一种基于共享变量读写操作分析的java多线程程序同步序列生成策略,采用动态代理类proxy实现了java多线程程序确定性测试框架系统,从而实现了一个java多线程可达性测试系统。